package com.guorui.service.impl;

import com.guorui.bean.RealEstate;
import com.guorui.bean.Users;
import com.guorui.dao.UsersDao;
import com.guorui.dao.impl.UsersDaoImpl;
import com.guorui.service.UsersServiece;

import java.util.List;

public class UsersServieceImpl implements UsersServiece {

    private RealEstate realEstate = new RealEstate();
    private UsersDao usersDao = new UsersDaoImpl();
    @Override
    public Users yanzhen(String cardid, String password) {

        return usersDao.yanzhen(cardid,password);
    }

    @Override
    public Users rigistfindid(String cardid) {
        return usersDao.rigistfindid(cardid);
    }

    @Override
    public int addusers(Users users) {
        return usersDao.addusers(users);
    }

    @Override
    public List<RealEstate> findall(String i1,int i,int first,int size) {
        return usersDao.findall(i1,i,first,size);
    }

    @Override
    public int add(RealEstate realEstate) {
        return usersDao.add(realEstate);
    }

    @Override
    public int delete(int id) {
        return usersDao.delete(id);
    }

    @Override
    public RealEstate findById(int id) {
        return usersDao.findById(id);
    }

    @Override
    public int update(RealEstate realEstate) {
        return usersDao.update(realEstate);
    }

    @Override
    public long total(String a,Integer type1) {
        return usersDao.total(a,type1);
    }

    @Override
    public int down(int a) {
        return 0;
    }
}
